import { createWebHashHistory, createRouter } from "vue-router"

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    name: 'home',
    path: '/home',
    component: () => import('@/views/OriginView.vue')
  },
  {
    name: 'tCesium',
    path: '/tCesium',
    component: () => import('@/views/TCesiumView.vue')
  },
  {
    name: 'tCesium2',
    path: '/tCesium2',
    component: () => import('@/views/TCesiumView2.vue')
  },
  {
    name: 'weather',
    path: '/weather',
    component: () => import('@/views/WeatherView.vue')
  },
  {
    name: 'water',
    path: '/water',
    component: () => import('@/views/WaterView.vue')
  },
  {
    name: 'cloud',
    path: '/cloud',
    component: () => import('@/views/CloudView.vue')
  },
  {
    name: 'offscreen',
    path: '/offscreen',
    component: () => import('@/views/OffScreenView.vue')
  },
  {
    name: 'simpleFusion',
    path: '/simpleFusion',
    component: () => import('@/views/SimpleFusion.vue')
  },
  {
    name: 'tsunami',
    path: '/tsunami',
    component: () => import('@/views/TsunamiView.vue')
  },
  {
    name: 'wind',
    path: '/wind',
    component: () => import('@/views/WindView.vue')
  },
  {
    name: 'heatmap',
    path: '/heatmap',
    component: () => import('@/views/HeatMapView.vue')
  },
  {
    name: 'heatmap3d',
    path: '/heatmap3d',
    component: () => import('@/views/HeatMapView3D.vue')
  },
  {
    name: 'test',
    path: '/test',
    component: () => import('@/views/tests/TestView.vue')
  },
  {
    name: 'test2',
    path: '/test2',
    component: () => import('@/views/tests/TestView2.vue')
  },
]

export default createRouter({
  routes,
  history: createWebHashHistory()
})
